package com.scm.platform;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @author dingc
 * @date 2017/9/11.
 */
@RestController
public class TestController {

    @Autowired
    private TestRpcService testRpcService;

    @RequestMapping(value = "/test/{id}", method = RequestMethod.GET)
    @ResponseBody
    public Map get(HttpServletRequest request) {
        return testRpcService.test();
    }




}
